From: Corey Berla Date: Mon, 10 Oct 2022 16:35:00 +0000 (-0700) Subject: gdkcontentserializer: Use newlines for file separators X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~186^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3168a3e08612c27843e641879dde7bcfb053d5b5;p=gtk4.git gdkcontentserializer: Use newlines for file separators Use newlines rather than spaces to separate file paths (or uri's) when serializing text/plain files. There isn't a matching deserializer, so we can do this in isolation. Newlines seem to make more sense when pasting into a text editor etc. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5240 --- diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c index 0e24b222e6..2ffbbf5ae5 100644 --- a/gdk/gdkcontentserializer.c +++ b/gdk/gdkcontentserializer.c @@ -879,7 +879,7 @@ file_text_serializer (GdkContentSerializer *serializer) g_string_append (str, path); g_free (path); if (l->next) - g_string_append (str, " "); + g_string_append (str, "\n"); } path = g_string_free (str, FALSE); }